<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>约健</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">

    {include file="public:headfile"}
</head>

<body class="hold-transition sidebar-mini">
<div class="wrapper">

    {include file="public:head"}

    {include file="public:slidemenu"}

    <div class="content-wrapper">

        <section class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1>轮播图列表</h1>
                    </div>
                </div>
            </div>
        </section>



        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-header">
                            <h3 class="card-title"> <button data-toggle="modal"
                                    data-target="#add">
                                        添加
                                     </button></h3>
                        </div>
                        <!-- /.card-header -->
                        <div class="card-body">
                            <table id="example2" class="table table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th>编号</th>
                                    <th>轮播图</th>
                                    <th>标题</th>
                                    <th>操作</th>
                                  
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="list" id="vo"}
                                <tr>
                                    <td>{$i}</td>
                                    <td><img src="__STATIC__/img/showimg/{$vo.sowingpic} " style="width: 200px;height:100px"></td>
                                    <td>{$vo.sowingtitle}</td>
                                    <td><button><a style="color: black" href="{:url('SuperAdmin/SowingmapController/delete',['id'=>$vo.sowingid])}">删除</a></button></td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </div>
                        <!-- /.card-body -->
                    </div>
                    <!-- /.card -->
                </div>
                <!-- /.col -->
            </div>
            <!-- /.row -->
        </section>
        <!-- /.content -->

    </div>
</div>
<!-- /模态框 -->
 <div class="modal fade" id="add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
         <h4 class="modal-title" id="myModalLabel">添加轮播图</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
       
      </div>
      <div class="modal-body">

  <form class="form-horizontal" action="{:url('SuperAdmin/SowingmapController/add')}" method="post" enctype="multipart/form-data">
  
  <div class="form-group">
    <label for="inputPassword3" class="col-md-2 control-label">标题</label>
    <div class="col-md-6">
      <input type="text" class="form-control" id="title" placeholder="标题" name="title">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPic" class="col-md-2 control-label">轮播图</label>
    <div class="col-md-6">
      <input type="file" name="pic">
    </div>
  </div>



    </div>
      <div class="modal-footer">
        <input type="submit" name="" value="提交" class="btn btn-default">
              <button type="button" class="btn btn-default" onclick="location.replace('index.html')" data-dismiss="modal">关闭</button>
      </div>
      </form>
    </div>
  </div>
</div>  

<!-- /模态框结束 -->
{include file="public:footfile"}

</body>

</html>